import javax.tools.JavaCompiler;

public class Comlier {
    public static void main(String[] args) {
        JavaCompiler systemJavaCompiler = javax.tools.ToolProvider.getSystemJavaCompiler();
        int code = systemJavaCompiler.run(null, null, null, new String[] {"F:\\fhs_mp\\complierTest\\src\\main\\java\\Student.java"});
        System.out.println(code);
    }
}
